package com.heima.search.pojos;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

//APP用户搜索信息表
@Data
@Document("ap_user_search")
public class ApUserSearch implements Serializable {
    //主键
    @Id
    private String id;
    //用户ID
    private Integer userId;
    //搜索词
    @Indexed(unique = true)
    private String keyword;
    //创建时间
    private Date createdTime;
}